<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <style>
        .menu {
            width: 200px; /* 或者其他宽度 */
        }

        .menu-item {
            text-align: justify;
            /* 防止最后一行文本两端对齐时出现空白 */
            text-align-last: justify;
        }

        /* 伪元素用于实现最后一行文本的两端对齐 */
        .menu-item:after {
            content: '';
            display: inline-block;
            width: 100%;
        }
    </style>
</head>
<body>
<div class="menu">
    <div class="menu-item">菜单项 1</div>
    <div class="menu-item">菜单项 2</div>
    <div class="menu-item">菜单项 3</div>
    <!-- 更多菜单项 -->
</div>
</body>
</html>